package cn.eonshine.cuba.inf.modular.biz.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import lombok.Data;

/**
 * <p>
 * Train GPS(火车GPS)
 * </p>
 *
 * @author Alan
 * @since 2018-07-28
 */
@TableName("inf_train_gps")
@Data
public class TrainGps extends Model<TrainGps> {

    private static final long serialVersionUID = 1L;

    /**
     * primary key
     */
    @TableField(exist = false)
    private String id;
    /**
     * Train primary key
     */
    @TableId
    @TableField("train_id")
    private String trainId;
    /**
     * longitude  经度
     */
    private BigDecimal longitude;
    /**
     * latitude 纬度
     */
    private BigDecimal latitude;
    /**
     * Create time
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * Remarks information
     */
    private String remarks;
    /**
     * Velocity 速度
     */
    private BigDecimal speed;
    /**
     * Direction 方向
     */
    private BigDecimal spin;

    /**
     * Data collection status 数据采集状态
     */
    @TableField("LSMS_UPDATE")
    private BigDecimal lsmsUpdate;
    /**
     * Data input datetime 数据更新时间
     */
    @TableField("DATA_INPUT_DATETIME")
    private Date dataInputDatetime;

    @Override
    protected Serializable pkVal() {
        return this.trainId;
    }

   

	@Override
    public String toString() {
        return "TrainGps{" +
        ", id=" + id +
        ", trainId=" + trainId +
        ", longitude=" + longitude +
        ", latitude=" + latitude +
        ", createDate=" + createDate +
        ", remarks=" + remarks +
        ", speed=" + speed +
        ", spin=" + spin +
        "}";
    }
}
